<!DOCTYPE html>
<html>
<head>
<meta name="renderer" content="webkit" />
<link rel="dns-prefetch" href="//hm.baidu.com">
<link rel="dns-prefetch" href="//bdimg.share.baidu.com">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<meta http-equiv="X-UA-Compatible" content="<?php echo X_UA_COMPATIBLE; ?>" />
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta http-equiv=”Cache-Control” content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<?php if (!$_GET['app'] OR $_GET['app'] == 'explore') { ?>
<link rel="canonical" href="<?php echo base_url();?>" />
<link rel="alternate" media="handheld" href="<?php echo base_url();?>/m" /> 
<meta property="qc:admins" content="2752363753634751506375" />
<meta property="wb:webmaster" content="4ea1fc222fc6a09c" />
<?php } elseif($_GET['app'] == 'question'){?>
<?php if(!$this->question_info['question_id']){?>
<link rel="canonical" href="<?php echo base_url();?><?php echo $_SERVER["REQUEST_URI"];?>" />
<?php }else{ ?>
<link rel="canonical" href="<?php echo base_url();?>/question/<?php echo $this->question_info['question_id']; ?>" />
<link rel="alternate" media="handheld" href="<?php echo base_url();?>/m/question/<?php echo $this->question_info['question_id']; ?>" /> 
<?php }?>
<?php } elseif($_GET['app'] == 'article'){?>
<link rel="canonical" href="<?php echo base_url();?><?php echo $_SERVER["REQUEST_URI"];?>" />
<link rel="alternate" media="handheld" href="<?php echo base_url();?>/m/article/<?php echo $this->article_info['id']; ?>" />
<?php } ?>
<title><?php echo $this->page_title; ?></title>
<meta name="keywords" content="<?php echo $this->_meta_keywords; ?>" />
<meta name="description" content="<?php echo $this->_meta_description; ?>"  />
<link href="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/img/ico.png?v=<?php echo G_VERSION_BUILD; ?>" rel="shortcut icon" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<?php echo G_STATIC_URL; ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="<?php echo G_STATIC_URL; ?>/css/icon.css" />
<?php if (is_array($this->_import_css_files)) { ?>
<?php foreach ($this->_import_css_files AS $import_css) { ?>
<link href="<?php echo $import_css; ?>" rel="stylesheet" type="text/css" />
<?php } ?>
<?php } ?>
<?php if ($this->template_name != 'default') { ?>
<link href="<?php echo G_STATIC_URL; ?>/css/<?php echo $this->template_name; ?>/<?php echo $this->template_name; ?>.css" rel="stylesheet" type="text/css" />
<?php } ?>
<?php $post_hash_var_name = strtoupper(md5(time() . $this->userinfo['salt'])); ?>
<script type="text/javascript">
	var _<?php echo $post_hash_var_name; ?>='<?php echo new_post_hash(); ?>';
	var G_POST_HASH=_<?php echo $post_hash_var_name; ?>;
	var G_INDEX_SCRIPT = '<?php if (get_setting('url_rewrite_enable') != 'Y') { ?><?php echo G_INDEX_SCRIPT; ?><?php } ?>';
	var G_SITE_NAME = '<?php echo addcslashes(get_setting('site_name'), "'"); ?>';
	var G_BASE_URL = '<?php echo base_url(); ?><?php if (get_setting('url_rewrite_enable') != 'Y') { ?>/<?php echo rtrim(G_INDEX_SCRIPT, '/'); ?><?php } ?>';
	var G_STATIC_URL = '<?php echo G_STATIC_URL; ?>';
	var G_UPLOAD_URL = '<?php echo get_setting('upload_url'); ?>';
	var G_USER_ID = '<?php echo $this->user_id; ?>';
	var G_USER_NAME = '<?php echo addcslashes($this->user_info['user_name'], "'"); ?>';
	var G_UPLOAD_ENABLE = '<?php echo get_setting('upload_enable'); ?>';
	var G_UNREAD_NOTIFICATION = 0;
	var G_NOTIFICATION_INTERVAL = <?php echo intval(get_setting('unread_flush_interval')) * 1000; ?>;
	var G_CAN_CREATE_TOPIC = '<?php echo $this->user_info['permission']['create_topic']; ?>';
	<?php if (human_valid('question_valid_hour')) { ?>
	var G_QUICK_PUBLISH_HUMAN_VALID = true;
	<?php } ?>
</script>
<?php if (is_array($this->_import_js_files)) { ?>
<?php foreach ($this->_import_js_files AS $import_js) { ?>
<script src="<?php echo $import_js; ?>?v=<?php echo G_VERSION_BUILD; ?>" type="text/javascript"></script>
<?php } ?>
<?php } ?>
<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/js/compatibility.js"></script>
<!--[if lte IE 8]>
<script type="text/javascript" src="<?php echo G_STATIC_URL; ?>/js/respond.js"></script>
<![endif]-->
</head>
<body>
<noscript unselectable="on" id="noscript">
    <div class="aw-404 aw-404-wrap container">
        <img src="<?php echo G_STATIC_URL; ?>/common/no-js.jpg">
        <p>你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!</p>
    </div>
</noscript>
